<%@ include file="/inc/header.jsp" %>

<html:form action="/element.do">
<html:hidden property="id" />
  <table border="0" align="center" cellspacing="0" cellpadding="0" width="75%">
    <tr>
      <th class="colored" colspan="5"><b>Edition du document</b></th>
    </tr>
    <tr>
      <td width="5%" align="center" valign="top">&nbsp;</td>
      <td width="25%" align="left" valign="top">&nbsp;</td>
      <td colspan="2" align="left" valign="top">&nbsp;</td>
      <td width="5%" align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b>Titre :</b>&nbsp;</td>
      <td colspan="2" align="left" valign="top"><bean:write name="elementForm" property="title" /></td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b>Description :</b>&nbsp;</td>
      <td colspan="2" align="left" valign="top"><bean:write name="elementForm" property="description" /></td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b>Type :</b>&nbsp;</td>
      <td colspan="2" align="left" valign="top">
		<yacme:type name="elementForm" />
      </td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <logic:notEqual name="elementForm" property="type" value="B">
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top">&nbsp;</td>
      <td colspan="2" align="left" valign="top">
	   	<img src="images/<bean:write name="elementForm" property="iconType"/>.gif" width="14" height="14">
	   	<logic:present name="elementForm" property="filepath">
			<a href="<bean:write name="elementForm" property="filepath"/>" target="new">
				<bean:write name="elementForm" property="filename"/>
			</a>
		</logic:present>
	    <logic:present name="elementForm" property="url">
			<a href="<bean:write name="elementForm" property="url"/>" target="new">
				<bean:write name="elementForm" property="url"/>
			</a>
		</logic:present>
      </td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    </logic:notEqual>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b>Mots cl&eacute;s :</b>&nbsp;</td>
      <td colspan="2" align="left" valign="top">
      	<bean:write name="elementForm" property="keywords" />
      </td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
      <td align="left" valign="top"><b>Cat&eacute;gories :</b></td>
      <td align="left" valign="top">
      	<ul>
      	<logic:iterate id="categoryForm" name="elementForm" property="categories">
			<li><bean:write name="categoryForm" property="fullname" /></li>
		</logic:iterate>
		</ul>
	  </td>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td align="left" valign="top" colspan="5">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="5" align="center" valign="top">
      <html:submit property="actionName" value="Supprimer" styleClass="button" />
        &nbsp; <html:button property="foo" value="Annuler" onclick="history.back()" styleClass="button" />
      </td>
    </tr>
  </table>
</html:form>

<%@ include file="/inc/footer.jsp" %>
